using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERPBackend.Models
{
    public class SupplierQualification : BaseModel
    {
     
        public int SupplierId { get; set; }

        [Required]
        [StringLength(50)]
        public string QualificationType { get; set; } = string.Empty;

        [Required]
        [StringLength(255)]
        public string FileName { get; set; } = string.Empty;

        [Required]
        [StringLength(255)]
        public string FilePath { get; set; } = string.Empty;

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime UploadTime { get; set; }

        [DataType(DataType.Date)]
        public DateTime? ValidUntil { get; set; }

        [Required]
        [Range(0, 1)]
        public byte Status { get; set; } = 1;


    }
}